package com.silence.gankio.paged

import android.arch.lifecycle.Transformations.switchMap
import android.arch.paging.LivePagedListBuilder
import android.arch.paging.PagedList
import com.silence.gankio.bean.GankIoData
import java.util.concurrent.Executor

class GankIoDataRepository(private val executor: Executor)
//    : GankIoRepository
{

//    override fun getDataList(pageSize: Int): Listing<GankIoData?> {
//        val sourceFactory = GankIoDataSourceFactory(executor)
//        val pagedListConfig = PagedList.Config.Builder()
//            .setEnablePlaceholders(false)
//            .setInitialLoadSizeHint(pageSize * 2)
//            .setPageSize(pageSize)
//            .build()
//        val pagedList = LivePagedListBuilder(sourceFactory, pagedListConfig)
//            .setFetchExecutor(executor)
//            .build()
//        val data = Listing<GankIoData>(null, null, null)
//        return data
//    }
}